// 修改状态

import * as type from './type'

const mutations = {
    [type.INCREASE_NUM](state, action) {
        state.count += action.payload
        state.info = action.payload
    },
    [type.REDUCE_NUM](state, action) {
        state.count -= action.payload
        state.info = action.payload
    }
}

export default mutations